<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>添加分类</title>
	<script type='text/javascript' src='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
	<link href='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/yc/hd_group_stu/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
	<link type="text/css" rel="stylesheet" href="http://localhost/yc/hd_group_stu/./Hdgroup/Hdgroup/Admin/Tpl/Public/Css/public.css"/>
</head>
<body>
	<div class="menu_list">
		<ul>
			<li><a href="javascript:;"  class="action"> 地区列表 </a></li>
			<li><a href="<?php echo U('City/add');?>"> 添加地区 </a></li>
			<li><a href="<?php echo U('City/update_cache');?>"> 更新地区缓存 </a></li>
		</ul>
	</div>
	<form action="" method="post"  class='hd-form'>
	<table class='table table-striped table-bordered '>
		<tbody>
			<tr>
				<td class="w100">上级分类</td>
				<td>
					<select name="pid" >
						<option value="0">一级分类</option>
						<?php if(is_array($city)):?><?php  foreach($city as $v){ ?>
							<option value="<?php echo $v['lid'];?>" <?php if($data['pid'] == $v['lid']){?>selected='selected'<?php }?>><?php echo $v['_name'];?></option>
						<?php }?><?php endif;?>
					</select>
				</td>
			</tr>
			<tr>
				<td class="w100">地区名称</td>
				<td>
					<input type="text" name="lname"  class='w200' value='<?php echo $data['lname'];?>'/>
				</td>
			</tr>

			
			<tr>
				<td>地区排序</td>
				<td>
					<input name="sort" type="text" class='w200' value="<?php echo $data['sort'];?>" />
				</td>
			</tr>
			<tr>
				<td>是否显示</td>
				<td>
					<label>
						<input <?php if($data['display']){?>checked='checked'<?php }?>   type="radio" name="display" value="1"/>	
						<span>显示</span>
					</label>
					<label>
						<input <?php if(!$data['display']){?>checked='checked'<?php }?>  type="radio" name="display" value="0"/>	
						<span>隐藏</span>
					</label>
				</td>
			</tr>
		</tbody>
	</table>
	<div class='position-bottom'>
		<input type="submit" class='hd-success' value="添加" />
		<input type="hidden" name="lid" value="<?php echo $data['lid'];?>" />
	</div>
	</form>
</body>
</html>